<gn-buttons>
  <button pButton type="button" class="ui-button-raised ui-button-secondary" label="新建" icon="pi pi-plus"></button>
  <button pButton type="button" class="ui-button-raised ui-button-secondary" label="修改" icon="pi pi-pencil"
          gnDialog [data]="{id: table.selectedKeys}"></button>
  <button pButton type="button" class="ui-button-raised ui-button-secondary" label="删除" icon="pi pi-minus"></button>
</gn-buttons>
<p-table gnTable dataKey="id" [url]="url" [method]="method" sortField="time" sortOrder="desc">
  <ng-template pTemplate="header">
    <tr>
      <th class="table-width-8">ID</th>
      <th>name</th>
      <th class="table-width-5">age</th>
      <th class="table-width-datetime">birthday</th>
      <th class="table-width-datetime">enable</th>
      <th class="table-width-3">结果</th>
      <th>超长</th>
    </tr>
    <tr *ngIf="table.showSearch">
      <th>
        <input pInputText type="text"
               (input)="table.table.filter('%' + $event.target.value + '%', 'businessName', 'like')">
      </th>
      <th></th>
      <th></th>
      <th></th>
      <th>
        <p-calendar #timeStart qhCalendar [showTime]="true"></p-calendar>
        至
        <p-calendar qhCalendar [showTime]="true"></p-calendar>
      </th>
      <th></th>
      <th></th>
    </tr>
  </ng-template>
  <ng-template pTemplate="body" let-rowData>
    <tr [pSelectableRow]="rowData">
      <td>{{rowData.id}}</td>
      <td>{{rowData.name}}</td>
      <td>{{rowData.age}}</td>
      <td class="table-content-center">{{rowData.birthday | datetime}}</td>
      <td class="table-content-center">{{rowData.enable}}</td>
      <td class="table-content-center"></td>
      <td class="table-content-center"></td>
    </tr>
  </ng-template>
</p-table>
<hr>
url：<input [(ngModel)]="url"><br>
method: <input [(ngModel)]="method"><br>
hasSelected：{{table.hasSelected}}<br>
hasSelectedOne：{{table.hasSelectedOne}}<br>
selectAll：{{table.selectAll}}<br>
selectedKeys：{{table.selectedKeys}}<br>
